//
//  CustomDatePicker.h
//  SinOpecHR
//
//  Created by Ray on 9/9/15.
//  Copyright (c) 2015 Siloon.KevinW. All rights reserved.
//

#import <UIKit/UIKit.h>

#define CustomDatePickerHeight 200

@class CustomDatePicker;

@protocol CustomDatePickerDelegate <NSObject>

- (void)confirmButtonClickedInCustomDatePicker:(CustomDatePicker *)customDatePicker;

- (void)cancelButtonClickedInCustomDatePicker:(CustomDatePicker *)customDatePicker;

@end




@interface CustomDatePicker : UIView

@property (nonatomic, weak) id <CustomDatePickerDelegate> delegate;
@property (nonatomic, strong) UIDatePicker *datePicker;
@property (nonatomic, strong) UIButton *cancelButton;
@property (nonatomic, strong) UIButton *confirmButton;
@property (nonatomic, strong) NSString *date;
@property (nonatomic) UIDatePickerMode pickerMode;
@property (nonatomic) NSInteger dateMode;  //0为日期， 1为带时间的时期


- (id)initWithFrame:(CGRect)frame date:(NSString *)date datePickerMode:(UIDatePickerMode)mode dateMode:(NSInteger)dateMode;

@end
